/*
 * @Date: 2022-09-16 09:20:00
 * @LastEditTime: 2022-09-16 09:23:02
 */

import Layout from "@/layout";
export const allAsyncRoutes = [
  {
    path: "/authority",
    name: "权限管理",
    component: () => import("@/layout/index.vue"),
    meta: { title: "权限管理", icon: "el-icon-s-tools" },
    children: [
      {
        path: "/authority/userList",
        name: "用户管理",
        component: () => import("@/views/acl/user/index"),
        meta:{title: "用户管理"},
      },
      {
        path: "/authority/roleList",
        name: "角色管理",
        component: () => import("@/views/acl/role/index"),
        meta:{title: "角色管理"},
      },
      {
        path: "/authority/menuList",
        name: "菜单管理",
        component: () => import("@/views/acl/menu/index"),
        meta:{title: "菜单管理"},
      }
    ],
  },

]
export const staticRoutes = [
 
  {
    path: "/login",
    name: 'Login',
    component: () => import("@/views/login/index.vue"),
    hidden: true,
  },

  {
    path: "/404",
    name: '404',
    component: () => import("@/views/404"),
    hidden: true,
  },

  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        name: "首页",
        component: () => import("@/views/dashboard/index"),
        meta: { title: "首页", icon: "dashboard" },
      },
    ],
  },
]
export const anyRoute = { path: "*", redirect: "/404", hidden: true }

